package kxfang.com.common.bean;

import androidx.annotation.Nullable;

import java.util.List;

/**
 * Created by ZJ
 * on 2020/4/17
 * Class Content 购物车列表实体类
 */
public class CartListModel {

    /**
     * iCount :int
     * RUserID : string
     * StoreID : string
     * StoreName : string
     * list : [{"CoverUrl":"string","Title":"string","DisCountPrice":0,"Num":0}]
     */
    private int iCount;
    private String RUserID;
    private String StoreID;
    private String StoreName;
    private String StartingPrice;
    private List<GoodsDetailModel> list;
    private boolean isCheck;//不是后台返回

    public String getStartingPrice() {
        return StartingPrice;
    }

    public void setStartingPrice(String startingPrice) {
        StartingPrice = startingPrice;
    }

    public int getiCount() {
        return iCount;
    }

    public void setiCount(int iCount) {
        this.iCount = iCount;
    }

    public String getRUserID() {
        return RUserID;
    }

    public void setRUserID(String RUserID) {
        this.RUserID = RUserID;
    }

    public boolean isCheck() {
        return isCheck;
    }

    public void setCheck(boolean check) {
        isCheck = check;
    }

    public String getStoreID() {
        return StoreID;
    }

    public void setStoreID(String StoreID) {
        this.StoreID = StoreID;
    }

    public String getStoreName() {
        return StoreName;
    }

    public void setStoreName(String StoreName) {
        this.StoreName = StoreName;
    }

    public List<GoodsDetailModel> getList() {
        return list;
    }

    public void setList(List<GoodsDetailModel> list) {
        this.list = list;
    }

    @Override
    public boolean equals(@Nullable Object obj) {
        if (obj != null && obj instanceof CartListModel) {
            if (((CartListModel) obj).getStoreID().equals(this.StoreID)) {
                return true;
            }
        }
        return false;
    }
}
